package com.webfinal.backsystem.dao;

import com.webfinal.backsystem.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    int deleteByPrimaryKey(Integer productId);

    int insert(Product record);

    Product selectByPrimaryKey(Integer productId);

    List<Product> selectAll();

    int updateByPrimaryKey(Product record);

    List<Product> selectByProductName(String name);

    List<Product> selectByProductType(String type);

    Product selectByProName (String productName);
}